package com.mfl.mapper;

import com.github.pagehelper.Page;
import com.mfl.pojo.dto.ExamDetailPageQueryDTO;
import com.mfl.pojo.entity.ExamDetail;
import com.mfl.pojo.vo.ExamDetailPageQueryVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamDetailMapper {
    /**
     * 添加考试记录详情
     * @param examDetail
     */
    void insert(ExamDetail examDetail);

    /**
     * 根据考试id删除考试记录详情
     * @param ids
     */
    void deleteByExamIds(List<Integer> ids);

    /**
     * 分页查询考试记录详情
     * @param examDetailPageQueryDTO
     * @return
     */
    Page<ExamDetailPageQueryVO> pageQuery(ExamDetailPageQueryDTO examDetailPageQueryDTO);
}
